import $service from '../../../service.js';
const app = getApp()
Page({
  data: {
    expressList:[],
    orderId:'',
    expressNumber: ''
  },
  onLoad: function (e) {
    this.setData({orderId: e.prescription_id})
    this.queryDeliveryInfo();
  },
  // 获取订单信息
  queryDeliveryInfo() {
    app.http.queryDeliveryInfo({"order_num": this.data.orderId}).then(res => {
      let {list,number} = res.data
      this.setData({
        expressList: list,
        expressNumber: number
      })
    }).catch(err => {
      $service.showToast(err.msg)
    })
  },
})